package com.usermanage.tool;
/**
 * 分页工具
 * @author 陆贝伊
 *
 */
public class Page {
	/**
	 * 当前页码
	 */
	private int currPage;
	/**
	 * 每页显示记录条数
	 */
	private int currCount=3;
	/**
	 * 总记录数
	 */
	private long totalCount;
	/**
	 * 总页码
	 */
	private long totalPages;
	/**
	 * 当前起始记录数
	 */
	private int start;
	public int getCurrPage() {
		return currPage;
	}
	public void setCurrPage(int currPage) {
		this.currPage = currPage;
	}
	public int getCurrCount() {
		return currCount;
	}
	public void setCurrCount(int currCount) {
		this.currCount = currCount;
	}
	public long getTotalCount() {
		return totalCount;
	}
	public void setTotalCount(long totalCount) {
		this.totalCount = totalCount;
	}
	public long getTotalPages() {
		return totalPages;
	}
	public void setTotalPages(long totalPages) {
		this.totalPages = totalPages;
	}
	public int getStart() {
		return start;
	}
	public void setStart(int start) {
		this.start = start;
	}
	@Override
	public String toString() {
		return "Page [当前页码=" + currPage + ",  每页显示记录条数=" + currCount + ", 总记录数=" + totalCount
				+ ", 总页码=" + totalPages + ", 当前起始记录数=" + start + "]";
	}
	
}
